<?php

class Pages extends CI_Controller {

	
	public function view($page = 'casa')
   {
			
	if ( ! file_exists('application/views/pages/'.$page.'.php'))
	{
		// Whoops, we don't have a page for that!
		show_404();
	}
	
	$data['title'] = ucfirst($page); // Capitalize the first letter
	
	//Done in the autoconfig
	//$this->load->helper('html');
	//$this->load->helper('url');
	
	//$this->load->view('templates/header', $data);
	//$this->load->view('casa',$data);
	//$this->load->view('pages/'.$page, $data);
	//$this->load->view('templates/footer', $data);
	
	$this->load->view('templates/header');
	$this->load->view('casa');
	//$this->load->view('pages/'.$page, $data);
	$this->load->view('templates/footer');

   }
}
